import 'package:flutter/material.dart';

/// @Title   text_style
/// @Author: bryce
/// @CreateDate: 2023年10月10日20:15:45
///

/// 字体style
TextStyle gtTextStyle({
  double? fontSize,
  Color? color,
  FontWeight fontWeight = FontWeight.w400,
  FontStyle? fontStyle,
  double? height,
  TextDecoration? decoration,
  Paint? background,
  Color? backgroundColor,
}) {
  return TextStyle(
    fontFamily: 'GTFontFamily',
    package: 'lib_uikit',
    fontSize: fontSize,
    color: color,
    fontWeight: fontWeight,
    fontStyle: fontStyle,
    height: height,
    decoration: decoration,
    background: background,
    backgroundColor: backgroundColor,
  );
}

StrutStyle gtStrutStyle({
  double? fontSize,
  double? height,
  FontWeight fontWeight = FontWeight.w400,
  FontStyle? fontStyle,
  TextLeadingDistribution? leadingDistribution,
  double? leading,
  bool? forceStrutHeight,
  String? debugLabel,
}) {
  return StrutStyle(
      fontFamily: 'GTFontFamily',
      package: 'lib_uikit',
      fontSize: fontSize,
      fontWeight: fontWeight,
      fontStyle: fontStyle,
      height: height,
      leadingDistribution: leadingDistribution,
      leading: leading,
      forceStrutHeight: forceStrutHeight,
      debugLabel: debugLabel);
}
///V3.1 300改400
TextStyle gtTextStyleW300({double? fontSize, Color? color}) {
  return gtTextStyle(fontSize: fontSize, color: color).copyWith(fontWeight: FontWeight.w400);
}

TextStyle gtTextStyleW400({double? fontSize, Color? color}) {
  return gtTextStyle(fontSize: fontSize, color: color).copyWith(fontWeight: FontWeight.w400);
}

TextStyle gtTextStyleW500({double? fontSize, Color? color}) {
  return gtTextStyle(fontSize: fontSize, color: color).copyWith(fontWeight: FontWeight.w500);
}
///V3.1 600改500
TextStyle gtTextStyleW600({double? fontSize, Color? color}) {
  return gtTextStyle(fontSize: fontSize, color: color).copyWith(fontWeight: FontWeight.w500);
}

TextStyle gtTextStyleW700({double? fontSize, Color? color}) {
  return gtTextStyle(fontSize: fontSize, color: color).copyWith(fontWeight: FontWeight.w700);
}

TextStyle gtTextStyleW800({double? fontSize, Color? color}) {
  return gtTextStyle(fontSize: fontSize, color: color).copyWith(fontWeight: FontWeight.w800);
}
